home *** CD-ROM | disk | FTP | other *** search
- global gProgramInstalled, gthisMC, glastMC, gAttractObject, gNextAttractTime, waitBetweenAttract, theActiveMenuSprite, spinnerCastList
-
- on mouseEnter
- set gotRollover to 0
- repeat with i = 4 to 9
- if rollOver(i) then
- if not (i = theActiveMenuSprite) then
- if objectp(gAttractObject) then
- kill(gAttractObject)
- end if
- set gNextAttractTime to the ticks + waitBetweenAttract
- set menuVis to i + 7
- if not (the visible of sprite menuVis = 1) then
- playSound("MM mouse-down")
- end if
- set theActiveMenuSprite to i
- set gotRollover to 1
- set theLocList to [point(41, 145), point(246, 96), point(455, 114), point(40, 259), point(247, 281), point(455, 319)]
- puppetSprite(3, 1)
- set theHit to i - 3
- set the castNum of sprite 3 to getAt(spinnerCastList, theHit)
- set the loc of sprite 3 to getAt(theLocList, theHit)
- HideAllMenusBut(i)
- updateStage()
- end if
- exit repeat
- end if
- end repeat
- end
-
- on HideAllMenusBut whichMenu
- repeat with i = 4 to 9
- if i <> whichMenu then
- set theMenu to i + 7
- puppetSprite(theMenu, 1)
- set the locH of sprite theMenu to -1000
- end if
- end repeat
- updateStage()
- set the visible of sprite (whichMenu + 7) to 1
- repeat with i = 4 to 9
- if i <> whichMenu then
- set theMenu to i + 7
- set the visible of sprite theMenu to 0
- puppetSprite(theMenu, 0)
- end if
- end repeat
- end
-
- on mouseWithin
- set gotTheRollover to 0
- repeat with whichSprite = 4 to 8
- if rollOver(whichSprite) then
- set NeedToReenter to the puppet of sprite 3 = 0
- if (whichSprite <> theActiveMenuSprite) or NeedToReenter then
- mouseExit()
- mouseEnter()
- end if
- if objectp(gAttractObject) then
- kill(gAttractObject)
- end if
- set gNextAttractTime to the ticks + waitBetweenAttract
- set gotTheRollover to 1
- exit repeat
- end if
- end repeat
- if not gotTheRollover then
- if rollOver(9) then
- set gotTheRollover to 1
- if objectp(gAttractObject) then
- kill(gAttractObject)
- end if
- set gNextAttractTime to the ticks + waitBetweenAttract
- set NeedToReenter to the puppet of sprite 3 = 0
- if (theActiveMenuSprite <> 9) or NeedToReenter then
- mouseExit()
- mouseEnter()
- end if
- end if
- end if
- end
-
- on mouseExit
- if theActiveMenuSprite > 0 then
- if not rollOver(theActiveMenuSprite) then
- puppetSprite(3, 0)
- updateStage()
- set theActiveMenuSprite to 0
- end if
- end if
- end
-